package pl.peterjack.servlet.system;

import java.io.IOException;
import java.util.Date;

import javax.jdo.PersistenceManager;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import pl.peterjack.model.PMF;
import pl.peterjack.model.dane.Firma;
import pl.peterjack.model.dane.Produkt;
import pl.peterjack.model.dane.RezultatOdpowiedz;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.impl.LogFactoryImpl;

import pl.peterjack.servlet.dane.produkt.ProduktDodaj;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;
import com.google.gson.Gson;

public class Wyloguj   extends HttpServlet {
	
	Log log = new LogFactoryImpl().getInstance(Wyloguj.class);

	@Override 
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		req.getSession().invalidate();
		resp.setContentType("text/plain");
		resp.setStatus(resp.SC_MOVED_TEMPORARILY);
		resp.setHeader("Location", "/");
	}

}	

